package cn.vc.auth.entity.po;

import cn.vc.basicmodule.entity.Entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <h1>用户</h1>
 */
@Data
@TableName("user")
public class VUser {
    @TableField(exist = false)
    public static final Long[] lxToExp = {1000L,2000L,4000L,8000L,16000L,32000L,64000L,128000L,256000L,512000L};
    @TableId(type = IdType.AUTO)
    private Long id = null;//数据库自增ID
    private String name;//真实名称
    private String idNum;//身份证号
    private String phone;//手机号
    private String email;//电子邮箱
    private String username;//用户名
    private String avatarUrl;//头像地址
    private String account;//账号
    private String password;//密码
    private Integer lv = 0;//等级
    private Long exp = lxToExp[lv];//经验
    private String signature; // 签名
    private Integer member; // 会员
    private Timestamp memberExpirationTime; // 会员到期时间
    private String blueV; // 蓝V认证
    private Long shopId; // 商铺ID
    private Integer followersNum = 0; // 关注量
    private Integer fansNum = 0; // 粉丝量
    private Timestamp setTime = new Timestamp(System.currentTimeMillis());//创建时间
    @TableLogic(value = "0"/*存在*/, delval = "1"/*删除*/)
    private Integer deleted = 0; // 删除字段
    @Version
    private Long version = 0L; // 乐观锁字段
}
